Use CommandExt::exec for `cargo run` on Unix (#2343)
authorRobin Stocker <robin@nibor.org>
Fri, 1 Jul 2016 04:31:36 +0000 (14:31 +1000)
committerRobin Stocker <robin@nibor.org>
Thu, 20 Oct 2016 02:07:52 +0000 (13:07 +1100)
commited5cea5f7383b720604141b7384ed6ef9390b088
tree5c8aac981825415c6a85c313932b0ed53bee29c7
parent02fed69e71806989a96ae372f5d0f7cbb9528c37
Use CommandExt::exec for `cargo run` on Unix (#2343)

Before, we would spawn a child process for the program. One of the
problems with that is when killing the cargo process, the program
continues running.

With this change, the cargo process is replaced by the program, and
killing it works.
src/cargo/ops/cargo_run.rs
src/cargo/util/process_builder.rs
tests/run.rs